package com.zhou.common.mybatis.template.oss.controller;

import com.zhou.common.base.mq.model.Response;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("config")
@RefreshScope
public class ConfigController {

    @Value(value = "${useLocalCache:false}")
    private String useLocalCache;

    @GetMapping(value = "/get" )
    @ResponseBody
    public Response get(@RequestParam String name) {
        return Response.success(useLocalCache);
    }
}
